package com.itheima.health.dao;

import com.itheima.health.pojo.CheckGroup;
import com.itheima.health.pojo.CheckItem;
import com.itheima.health.pojo.Setmeal;
import com.itheima.health.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ReserationDao {
/*
* 查询所有套餐
* */
    @Select("select *from t_setmeal")
    List<Setmeal> getSetmealAll();


    /*
* 根据id查分组
* */
    List<CheckGroup> getByidGoup(Setmeal setmeal1);
/*
* 跟据id查询套餐详情
* */
    @Select("select * from t_setmeal where id=#{id}")
    Setmeal fianBid(Integer id);
/*
* 根据分组表id查寻项目信息
* */
    List<CheckItem> getGoupid(CheckGroup checkGroup);
}
